package com.vhans.db.model.dto.friend;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 好友DTO
 *
 * @author vhans
 * @date 2023-05-21
 */
@Data
@Builder
@ApiModel(description = "好友DTO")
public class FriendDTO {

    /**
     * 编号
     */
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 房间号
     */
    @ApiModelProperty(value = "房间号")
    private String roomId;

    /**
     * 用户id
     */
    @NotNull(message = "用户不能为空")
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    /**
     * 好友id
     */
    @NotNull(message = "好友不能为空")
    @ApiModelProperty(value = "好友id")
    private Integer friendId;

    /**
     * 好友备注
     */
    @NotBlank(message = "好友备注不能为空")
    @ApiModelProperty(value = "好友备注")
    private String friendRemark;

    /**
     * 最近好友ids
     */
    @ApiModelProperty(value = "最近好友ids")
    private List<Integer> recentFriendIds;
}
